#include <iostream>
#include <string.h>
#include <cstring>
#include <stdio.h>
using namespace std;

int main(int argc, char** argv)
{
	char szChar1[10] = "hello";
	char szChar2[10] = "hello";
	char szChar3[15] = "hello world";
	char szChar4[10];
	
	cout << " strlen(szChar1) = " << strlen(szChar1) << endl;
	cout << " strcat(szChar1, szChar2) = " << strcat(szChar1, szChar2) << endl;	
	cout << " strcmp(szChar1, szChar3) = " << strcmp(szChar1, szChar3) << endl;
	cout << " strcmp(szChar3, szChar1) = " << strcmp(szChar3, szChar1) << endl;
	cout << " strcmp(szChar1, szChar2) = " << strcmp(szChar1, szChar2) << endl;
	strcpy(szChar4, szChar2);
	cout << " strcpy(szChar4, szChar2) ; szChar4 = " << szChar4 << endl;
	cout << " strchr(szChar1, 'h') = " << strchr(szChar1, 'h') << endl;
	printf(" strchr(szChar1, 'h') = %p \n", strchr(szChar1, 'h'));
	cout << " strchr(szChar3, 'l') = " << strchr(szChar3, 'l') << endl;
	cout << " strstr(szChar3, szChar2) = " << strstr(szChar3, szChar2) << endl;	
	printf(" strstr(szChar3, szChar2) = %p \n",strstr(szChar3, szChar2));

	string sz1 = "hello";
	string sz2 = "world";
}

